{% extends "base.html" %}
{% load nav_extras %}
{% block header%}
<script type="text/javascript">
    var myCalendar;
    function doOnLoad() {
        myCalendar = new dhtmlXCalendarObject([ "dt1", "dt2" ]);
        myCalendar.loadUserLanguage('cn');
    }
</script>
{% endblock%}
{% block content %}
<div class="searchBar">
  <form action="{{full_path}}" method="post">
    {% csrf_token %} <br /> 起始日期：<input type="text" id="dt1" name="dt1" value="{{dt1|date:'Y-m-d'}}" /> 终止日期：<input type="text"
      id="dt2" name="dt2" value="{{dt2|date:'Y-m-d'}}" /><br /> <input type="submit" value="检索" />
  </form>
</div>
    <div class="pageContent">
         <table class="dhtmlxGrid" gridHeight="auto" name="grid2" imgpath="/static/js/codebase/imgs/" width="98%" lightnavigation="true">
    <tr>
            <td type="ro">填报者</td>
            <td type="ro">报表类型</td>
            <td type="ro">开始时间</td>
            <td type="ro">结束时间</td>
            <td type="ro">操作</td>
        </tr>
        {%for todo in list.object_list%}
        <tr >
            <td >{{todo.auth_user.last_name}}</td>
            <td >{{todo.schedule_type.name}}</td>
            <td >{{todo.start_date|date:"Y-m-d"}}</td>
            <td >{{todo.end_date|date:"Y-m-d"}}</td>
            <td > <a href="/schedule/compose?" target="navTab" rel="edit_schedule" title="开始填写">填写</a></td>
        </tr>
        {%endfor%}
        </table>
    </div>


<div class="pagination">
  {% paging_nav nav_url pn pc %} 
  </div>

{% endblock %}